import request from "../utils/request"

/**
 * 上传文件API
 */

// 上传单个文件
export const adminUpload = params => {
    return request({
        headers: {'img': 'upload'},
        method: 'POST',
        // 'Content-Type': 'multipart/form-data',
        url: '/admin/upload',
        data: params
    })
}
